<?php if ($this->pageCount): ?>
<div class="pagination">
	<ul>
	<?php 
	if (isset($this->previous)){
		echo '<li><a href="'.$this->url(array('mpage' => $this->first)).'" title=""><i class="icon-chevron-left"></i></a></li>';
	}
	if (isset($this->previous)){
		echo '<li><a href="' . $this->url(array('mpage' => $this->previous)). '" title=""><i class="icon-caret-left"></i></a></li>';
	}
	foreach ($this->pagesInRange as $page){
		if ($page != $this->current){
			echo  '<li><a href="' . $this->url(array('mpage' => $page)). '" title="'.$page.'">' . $page . '</a></li>';
		}else{
			echo '<li><a>'.$page . '</a></li>';
		}
	}
	if (isset($this->next)){
		echo '<li><a href="' . $this->url(array('mpage' => $this->next)) . '" title=""><i class="icon-caret-right"></i></a></li>';
	}
	if (isset($this->next)){
		echo '<li><a href="'.$this->url(array('mpage' => $this->last)).'" title=""><i class="icon-chevron-right"></i></a></li>';
	}
	?>
	</ul>
</div>
<?php endif; ?>